import request from '@/utils/request'

export const paymentAPI = {
  list: (orderId) => request.get('/payment/payments', { params: { orderId } }),
  create: (data) => request.post('/payment/payments', data),
  refund: (id) => request.delete(`/payment/payments/${id}`)
}


